# coding=utf-8


def max_min(the_list, max_value, min_value):
    for i in the_list:
        if the_list.index(i) == 0:
            max_value = i
            min_value = i
        the_list.pop(0)
        for j in the_list:
            if j > max_value:
                max_value = j
            if j < min_value:
                min_value = j
    print("result", max_value, min_value)


if __name__ == '__main__':
    max_value = 0
    min_value = 0
    max_min([1, 0, 4, 2, 0, 1], max_value, min_value)
